package org.com.lcuiot.database.dto;



/**
 * @author gaoge
 * @since 2022/10/24 16:02
 */
public class Result<T> {
    private Integer code = 200;
    private String msg = "success";
    private T data;



    public Integer getCode() {
        return code;
    }

    public Result<T> setCode(Integer code) {
        this.code = code;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public Result<T> setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public T getData() {
        return data;
    }

    public Result<T> setData(T data) {
        this.data = data;
        return this;
    }

    public static Result<Object> build(){
        return new Result<>();
    }


}
